package com.common.www.bean.entity.programme;


import org.springframework.boot.base.jpa.domain.annotations.QueryCacheable;
import org.springframework.boot.base.jpa.domain.entity.NumberIdentityEntity;
import com.common.www.bean.entity.project.Project;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.*;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 对比分析备注差异
 *
 * @param
 * @author andyliu
 * @date 5/28/2018 4:23 PM
 * @return
 */
@DynamicUpdate(true)
@DynamicInsert(true)
@Entity
@Getter
@Setter
@QueryCacheable
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Table()
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "对比分析备注差异")
public class ComparativeAnalysisRemark extends NumberIdentityEntity {
    /**
     * key 的hash(根据业务不同hash取值不同)，最好保持唯一性
     */
    @Column(length = 64)
    private String keyHash;
    /**
     * 转成keyHash之前的值
     */
    @Column(length = 128)
    private String keyHashName;
    /**
     * 1.投标报价纵向对比  2.综合单价对比
     */
    @Column(length = 32)
    private Integer type;
    /**
     * 备注
     */
    @Column(length = 512)
    private String remark;

}